import type PageContent from '@/components/page-content/page-content.vue'
import { ref } from 'vue'
function usePageCountent() {
  const contentRef = ref<InstanceType<typeof PageContent>>()
  // 搜索
  function handleQueryClick(queryInfo: any) {
    // 发送网络请求
    contentRef.value?.fetchPageListData(queryInfo)
  }
  function handleResetClick() {
    contentRef.value?.fetchPageListData()
  }
  return {
    contentRef,
    handleQueryClick,
    handleResetClick
  }
}
export default usePageCountent
